<!DOCTYPE>
<HTML>
 <HEAD>
     <TITLE><php>echo getSiteOption('siteName');</php> 后台管理</TITLE>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="__PUBLIC__/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
  <link rel="stylesheet" href="__PUBLIC__/admin/admin.css" type="text/css">
  <link rel="apple-touch-icon" href="__PUBLIC__/appicon.png">
  <link rel="shortcut icon" href="__PUBLIC__/favicon.ico">
  <link href="__PUBLIC__/zui/css/zui.min.css" rel="stylesheet">


<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/zTree/js/jquery.ztree.core-3.5.min.js"></script>
  <SCRIPT type="text/javascript" >
  <!--
	var zTree;
	var demoIframe;

	var setting = {
		view: {
			dblClickExpand: false,
			showLine: true,
			selectedMulti: false
		},
		data: {
			simpleData: {
				enable:true,
				idKey: "id",
				pIdKey: "pId",
				rootPId: ""
			}
		},
		callback: {
			beforeClick: function(treeId, treeNode) {
				var zTree = $.fn.zTree.getZTreeObj("tree");
				if (treeNode.isParent) {
					zTree.expandNode(treeNode);
					return false;
				} else {
					demoIframe.attr("src",treeNode.file + ".html");
					return true;
				}
			}
		}
	};

	<include file="Admin:navjson" />

	$(document).ready(function(){
		var t = $("#tree");
		t = $.fn.zTree.init(t, setting, zNodes);
		demoIframe = $("#testIframe");
		demoIframe.bind("load", loadReady);
		var zTree = $.fn.zTree.getZTreeObj("tree");
		zTree.selectNode(zTree.getNodeByParam("id", 101));

	});

	function loadReady() {
		var bodyH = demoIframe.contents().find("body").get(0).scrollHeight,
		htmlH = demoIframe.contents().find("html").get(0).scrollHeight,
		maxH = Math.max(bodyH, htmlH), minH = Math.min(bodyH, htmlH),
		h = demoIframe.height() >= maxH ? minH:maxH ;
		if (h < 530) h = 530;
		demoIframe.height(h);
	}

  //-->
  </SCRIPT>
 </HEAD>

<BODY>
<include file="Public:nav" />
<div class='article clearfix'>
<TABLE border=0  align=left>
	<TR>
		<TD width=10% align=left valign=top style="BORDER-RIGHT: #999999 1px dashed">
			<ul id="tree" class="ztree" style="width:150px; overflow:auto;"></ul>
		</TD>
		<TD width=90% align=left valign=top>
        <IFRAME ID="testIframe" Name="main" FRAMEBORDER="0" SCROLLING="AUTO" width="80%"   SRC="{:U('Admin/Admin/addContent')}"></IFRAME></TD>
	</TR>
</TABLE>
</div>
 <include file="Public:footer" />
</BODY>
</HTML>
